package com.ciwong.epaper.modules.epaper.ui.newlistenspeak.shortcoversation;


import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;

import com.ciwong.epaper.R;
import com.ciwong.epaper.modules.epaper.ui.newlistenspeak.BaseConversationActivity;
import com.ciwong.epaper.modules.epaper.ui.newlistenspeak.shortcoversation.fragment.BaseConversationFragment;
import com.ciwong.epaper.modules.epaper.ui.newlistenspeak.shortcoversation.fragment.ShortCoversationViewFragment;

/**
 * date :2018/5/3
 * author: loco
 * description:短对话页面
 * version:
 * email: lzh838330255@163.com
 */

public class ShortConversationActivity extends BaseConversationActivity {

    @Override
    protected int setView() {
        return R.layout.activity_conversation;
    }

    @Override
    protected void findViews() {
        super.findViews();
    }

    @Override
    protected void initEvent() {
        super.initEvent();
        initFragments();
    }

    protected void initFragments() {
        BaseConversationFragment shortConversationFragment = new ShortCoversationViewFragment();
        FragmentManager manager = getSupportFragmentManager();
        FragmentTransaction transaction = manager.beginTransaction();
        transaction.add(R.id.fl_container_conversation, shortConversationFragment);
        transaction.commit();
    }
}
